const {ethers } = require('ethers')

const config =require('./config');
let admin = ethers.Wallet.fromMnemonic(config.MNEMONIC);

console.log('admin.address: ', admin.address);

const usdc = require('./eth_2_noble/usdc')

const main = async(address)=>{
    let url = config.goerli.url;
    console.log('url: ', url);
    let _provider = new ethers.providers.JsonRpcProvider(url);
    console.log("address: ", address)
    let balance = await _provider.getBalance(address);
    console.log('balance is : ', balance.toString())

    let usdc_balance = await usdc.balanceOf(address);
    console.log("usdc_balance: ", usdc_balance.toString())

}
main(admin.address)